package thread;

public class CurrentThreadDemo {
    public static void main(String[] args) {
        Thread t = new Thread(){
            public void run(){
                Thread t = Thread.currentThread();
                System.out.println("自定义线程："+t);
                doSome();
            }
        };
        t.start();
    }

    public static void doSome(){
        Thread t = Thread.currentThread();
        System.out.println("当前线程："+t);
    }
}


